package br.ufrn.opencopi.underlayIntegrationLayer;

import java.util.Enumeration;
import java.util.Hashtable;

/**
 * This class stores underlay middleware metadata, for example, name,
 * net information, etc...
 * @author Fred
 *
 */
public class ProviderMetaData extends Hashtable<String, String>{

	public ProviderMetaData(String name){
		setName(name);
	}

	public void setName(String name){
		setProperty("name", name);
	}

	public String getName(){
		return getProperty("name");
	}

	public void setProperty(String nameProperty, String valueProperty){
		put(nameProperty, valueProperty);
	}

	public String getProperty(String nameProperty){
		return get(nameProperty);
	}

	public void setProperties(Hashtable<String, String> properties){
		putAll(properties);
	}

	public Hashtable<String, String> getProperties(){
		return this;
	}

}
